package com.mi9688.method_quote;

public class Message {
    private  String content="hello";
    private  Integer id=100;


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Message{" +
                "content='" + content + '\'' +
                ", id=" + id +
                '}';
    }

    //计算信息内容行数
    public int lineCount(){
        return (this.content.length()/80)+1;
    }

}
